Drawing.divideBezierSegment Method

Divides a Bézier segment defined by the specified points into two equivalent segments at the specified parameter t along the segment.
 
 
Static This method is static.

Parameters

startX

Type: Number
The X coordinate of the start of the segment.
startY

Type: Number
The Y coordinate of the start of the segment.
cp1x

Type: Number
The X coordinate of the first control point.
cp1y

Type: Number
The Y coordinate of the first control point.
cp2x

Type: Number
The X coordinate of the second control point.
cp2y

Type: Number
The Y coordinate of the second control point.
endX

Type: Number
The X coordinate of the end of the segment.
endY

Type: Number
The Y coordinate of the end of the segment.
t

Type: Number
A number specifying where to divide the segment, where 0 is the start and 1 is the end.

Return Value


Type: Array
ElementType: Array
An array of seven arrays, each of which contain X and Y coordinates, respectively, and collectively representing the start, end and control points for the two segments, where the end of the first segment is the same as the start of the second segment.